home *** CD-ROM | disk | FTP | other *** search
-
-
-
- SSSSCCCCGGGGeeeettttSSSSccccaaaannnnnnnneeeerrrrRRRReeeessss((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCGGGGeeeettttSSSSccccaaaannnnnnnneeeerrrrRRRReeeessss((((3333))))
-
-
-
- NNNNAAAAMMMMEEEE
- SCGetScannerRes, SCGetMinMaxRes - Determining the resolutions supported
- by a scanner driver
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssccccaaaannnnnnnneeeerrrr....hhhh>>>>
-
- iiiinnnntttt SSSSCCCCGGGGeeeettttSSSSccccaaaannnnnnnneeeerrrrRRRReeeessss((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, iiiinnnntttt mmmmeeeettttrrrriiiicccc,,,, ffffllllooooaaaatttt ********xxxxrrrreeeessss,,,,
- ffffllllooooaaaatttt ********yyyyrrrreeeessss,,,, iiiinnnntttt ****nnnnrrrreeeessss))));;;;
-
- iiiinnnntttt SSSSCCCCGGGGeeeettttMMMMiiiinnnnMMMMaaaaxxxxRRRReeeessss((((SSSSCCCCAAAANNNNNNNNEEEERRRR ****ssss,,,, iiiinnnntttt mmmmeeeettttrrrriiiicccc,,,, ffffllllooooaaaatttt ****mmmmiiiinnnnxxxx,,,, ffffllllooooaaaatttt ****mmmmiiiinnnnyyyy,,,,
- ffffllllooooaaaatttt ****mmmmaaaaxxxxxxxx,,,, ffffllllooooaaaatttt ****mmmmaaaaxxxxyyyy))));;;;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s queries the scanner driver _s about the native resolutions
- supported. These are the resolutions which when used for scanning will
- yield the highest quality image output.
-
- _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s makes *_x_r_e_s and *_y_r_e_s point to arrays of floating point
- numbers, representing pairs of horizontal and vertical native
- resolutions. _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s sets *_n_r_e_s to the number of elements in
- each of _x_r_e_s and _y_r_e_s. _m_e_t_r_i_c should be passed in as either SSSSCCCC____IIIINNNNCCCCHHHHEEEESSSS or
- SSSSCCCC____CCCCEEEENNNNTTTTIIIIMMMM, depending on whether the resolution is desired in pixels per
- inch or pixels per centimeter.
-
- Some scanners support all resolutions within the bounds given by
- _S_C_G_e_t_M_i_n_M_a_x_R_e_s (see below) equally well. For such scanners, *_n_r_e_s will
- be 0 after a call to _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s.
-
- _S_C_G_e_t_M_i_n_M_a_x_R_e_s fills in *_m_i_n_x with the smallest resolution supported in
- the horizontal direction, *_m_i_n_y with the smallest resolution supported in
- the vertical direction, *_m_a_x_x with the largest resolution supported in
- the horizontal direction, and *_m_a_x_y with the largest resolution supported
- in the vertical direction. Use _m_e_t_r_i_c to specify either SSSSCCCC____IIIINNNNCCCCHHHHEEEESSSS or
- SSSSCCCC____CCCCEEEENNNNTTTTIIIIMMMM for the units.
-
- The scanner driver must support any horizontal resolution between *_m_i_n_x
- and *_m_a_x_x, and it must support any vertical resolution between *_m_i_n_y and
- *_m_a_x_y. Specifying a resolution outside these limits will yield
- unpredictable results. If the resolution specified is not a resolution
- pair returned by _S_C_S_c_a_n_n_e_r_R_e_s, image quality may suffer. See _S_C_S_e_t_u_p(3)
- for more information on setting the scanning resolution.
-
- RRRREEEETTTTUUUURRRRNNNN VVVVAAAALLLLUUUUEEEE
- _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s and _S_C_G_e_t_M_i_n_M_a_x_R_e_s return 0 if they are successful, and
- -1 if an error occurs. If an error does occur, SCerrno will be set to
- indicate the reason for failure.
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- SSSSCCCCGGGGeeeettttSSSSccccaaaannnnnnnneeeerrrrRRRReeeessss((((3333)))) IIIImmmmpppprrrreeeessssssssaaaarrrriiiioooo SSSSCCCCGGGGeeeettttSSSSccccaaaannnnnnnneeeerrrrRRRReeeessss((((3333))))
-
-
-
- EXECUTION ERROR CODES
- _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s and _S_C_G_e_t_M_i_n_M_a_x_R_e_s will fail under the following
- circumstances.
-
- SCEBADMETRIC Unsupported metric
-
- SCEDEV Scanner driver error
-
- SCECOMM Error communicating with scanner driver
-
- WWWWAAAARRRRNNNNIIIINNNNGGGG
- The memory pointed to by *_x_r_e_s and *_y_r_e_s after a call to _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s
- belongs to _l_i_b_s_c_a_n(3) and should not be modified by the calling program.
- Nor should any assumptions be made about its values after subsequent
- calls to _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s; in other words, it should be copied to memory
- owned by the calling program before future calls to _S_C_G_e_t_S_c_a_n_n_e_r_R_e_s.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- _l_i_b_s_c_a_n(3), _S_C_S_e_t_u_p(3).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-